#ifndef FILTER_H
#define FILTER_H
#include "../global.h"

#include <QWidget>

namespace Ui {
class Filter;
}

class Company;
class Connector;

class Filter : public QWidget {
    Q_OBJECT

  public:
    explicit Filter(QWidget *parent,Connector *connector);
    ~Filter();
    void filter();
  public slots:
    void showDetail(int row,int column);
    void updateConstraint();
    void pageHead();
    void pageTail();
    void pageUp();
    void pageDown();
    void pageJump(int page);

  private:
    Ui::Filter *ui;
  public:
    QVariantMap *constraint;
    int pageCurr;
    int pageTotal;
    QList<Company *> *companyList;
    Connector *connector;
};

#endif // FILTER_H
